package com.learnyou.server.xingzuo.dto.paramDTO;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

@Data
public class StudentParamDTO {

    @NotEmpty(message = "姓名不能为空")
    @ApiModelProperty(value = "学生姓名")
    private String studentName;
    @NotEmpty(message = "性别不能为空")
    @ApiModelProperty(value = "性别")
    private String studentGender;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "出生年月日")
    private Date studentBirthday;

    @ApiModelProperty(value = "地址")
    private String address;
}
